package com.thm.tfast.core.constant;

/**
 * @author THM
 * @date 2022/6/12
 * @desc redis key前缀
 */
public class RedisKeyConstant {
    /**
     * 用户缓存失效时间
     */
    public static Long EXPIRE = 7200L;
    /**
     * 资源缓存失效时间
     */
    public static Long RESOURCE_EXPIRE = 86400L;
    /**
     * 公共前缀
     */
    public static String COMMON_PRE = "t-fast";
    /**
     * 用户
     */
    public static String SYS_USER_PRE = COMMON_PRE + ":user:user";
    /**
     * 用户角色
     */
    public static String SYS_ROLE_PRE = COMMON_PRE + ":user:role";
    /**
     * 菜单
     */
    public static String SYS_MENU_PRE = COMMON_PRE + ":user:menu";
    /**
     * 权限
     */
    public static String SYS_PERMISSION_PRE = COMMON_PRE + ":user:permission";
    /**
     * 资源
     */
    public static String SYS_RESOURCE_PRE = COMMON_PRE + ":resource";
    /**
     * 字典
     */
    public static String SYS_DICT_PRE = COMMON_PRE + ":dict";
    /**
     * 验证码
     */
    public static String CAPTCHA_KEY_PRE = COMMON_PRE + ":captcha";
    /**
     * token
     */
    public static String TOKEN_KEY_PRE = COMMON_PRE + ":user:token";
    /**
     * 客户端授权
     */
    public static String AUTH_KEY_PRE = COMMON_PRE + ":client:auth";
}
